package com.flw.eslab.action.admin;

import java.io.IOException;

import org.springframework.stereotype.Controller;

import com.flw.eslab.model.IPRecord;
import com.sina.sae.kvdb.SaeKV;
import com.sina.sae.kvdb.SaeKVUtil;
//@Controller
public class CountAction {
	private SaeKV kv;

	public String countIP() throws IOException, ClassNotFoundException {
		IPRecord ipRecord = SaeKVUtil.deserializable(kv.get("T_IPRecord"));
		System.out.println("ipRecord:" + ipRecord.getIp());
		System.out.println("ipRecord:" + ipRecord.getDate());
		return "toLogin";
	}
	/*-----------------------------------*/
	public CountAction() {
		super();
		kv = new SaeKV();
		// 初始化服�?
		kv.init();
	}
}
